package com.itheima.pattern.command;

public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFood("西红柿鸡蛋面", 1);
        order1.setFood("可乐", 2);

        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFood("小炒肉", 1);
        order2.setFood("雪碧", 1);

        SeniorChef seniorChef = new SeniorChef();

        OrderCommand orderCommand1 = new OrderCommand(seniorChef, order1);
        OrderCommand orderCommand2 = new OrderCommand(seniorChef, order2);

        Waitor waitor = new Waitor();
        waitor.setCommand(orderCommand1);
        waitor.setCommand(orderCommand2);

        waitor.orderUp();
    }
}
